package ${package.inputDTOClassPackage};

import com.alibaba.fastjson.annotation.JSONField;
import ${package.PageParamPackage};
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
* 表 名： ${tableName}
* 注 释： ${tableComment} 查询dto
*
* @author ${author}
* @date ${createDate}
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Select${entity}InputDTO extends PageParam implements Serializable {

    private static final long serialVersionUID = 1L;

<#-- list指令 迭代循环 -->
<#list fields as field>
   <#if field.propertyName == "createdAt" || field.propertyName == "updatedAt">
   <#else>
    /**
     * ${field.remark}
     */
    private ${field.propertyType} ${field.propertyName};

   </#if>
</#list>
    /**
     * 查询开始时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private String startTime;

    /*
     * 查询结束时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private String endTime;

}